// 环境配置
export interface EnvConfig {
  apiBaseUrl: string
  wsBaseUrl: string
  isDevelopment: boolean
  isProduction: boolean
  version: string
}

// 获取环境配置
export const getEnvConfig = (): EnvConfig => {
  const isDevelopment = import.meta.env.DEV
  const isProduction = import.meta.env.PROD
  
  return {
    apiBaseUrl: import.meta.env.VITE_API_BASE_URL || '/api',
    wsBaseUrl: import.meta.env.VITE_WS_BASE_URL || 'ws://localhost:8080/ws',
    isDevelopment,
    isProduction,
    version: import.meta.env.VITE_APP_VERSION || '1.0.0',
  }
}

// 导出配置实例
export const envConfig = getEnvConfig()